package com.xxgc.demo.utils;
/*
 *
 *   @Author:Sjy
 *   @Date: 2023/9/25-09-25-15:31
 *  座位工具类，用来获取座位名称
 */
public class SeatUtil {
    public static String getSeatName(Integer number,Integer seatType){
        String seatName = "";
        //补0
        if(number < 100){
            seatName = "0" + number;
        }
        if(number < 10){
            seatName = "0" + seatName;
        }
        //座位头
        switch (seatType){
            case 1:
                seatName = "A" + seatName;
                break;
            case 2:
                seatName = "B" + seatName;
                break;
            case 3:
                seatName = "C" + seatName;
                break;
        }
        return seatName;
    }
}
